import { ref } from "vue";
import { defineStore } from "pinia";

export const useAvatarStore = defineStore(
    "avatar",
    () => {
        const Avatar = ref();
        const updateAvatar = (val) => {
            Avatar.value = val;
        }
        const removeAvatar = () => { Avatar.value = null; }
        return { Avatar, updateAvatar, removeAvatar }
    }, {
        persist: true,
    }

);